{{#unless apiDto.apiEntity.subSysDE}}
package {{packageName}}.{{apis}}.dto;

import java.util.*;
{{#if apiDto.hasBigDecimal}}
import java.math.BigDecimal;
{{/if}}
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient;
import lombok.*;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * {{apiDto.logicName}}[{{apiDto.codeName}}]
 *
 * @author generator
 */
@Getter
@Setter
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("{{apiDto.logicName}}DTO")
public class {{apiDto.codeName}} extends {{#eq apiDto.apiEntity.entity.psSubSysServiceAPI.serviceType "MIDDLEPLATFORM"}}DTOClient{{else}}DTOBase{{/eq}} implements Serializable {

    private static final long serialVersionUID = 1L;

    {{#each apiDto.apiDtoFields}}
    /**
     * {{logicName}}
     */
    @JsonProperty("{{jsonName}}")
            {{#timeType}}
    @JsonFormat(pattern = "{{format}}", locale = "zh", timezone = "GMT+8")
            {{/timeType}}
    @JSONField(name = "{{jsonName}}"{{#timeType}} , format = "{{format}}"{{/timeType}})
            {{#eq javaType "Long"}}
    @JsonSerialize(using = ToStringSerializer.class)
            {{/eq}}
    @ApiModelProperty(value = "{{logicName}}", position = {{@index}})
    private {{#eq javaType "Timestamp"}}Date{{else}}{{javaType}}{{/eq}} {{camelCase codeName}};

    {{/each}}

    {{#each apiDto.apiDtoFields}}
        {{#unless keyDEField}}
            {{#unless predefinedType}}
    /**
     * 设置 [{{logicName}}]
     */
    public {{apiDto.codeName}} set{{pascalCase codeName}}({{#eq javaType "Timestamp"}}Date{{else}}{{javaType}}{{/eq}} {{camelCase codeName}}) {
        this.{{camelCase codeName}} = {{camelCase codeName}};
        this.modify("{{lowerCase codeName}}", {{camelCase codeName}});
        return this;
    }

            {{/unless}}
        {{/unless}}
    {{/each}}

}
{{/unless}}